"To play the hero" means pretending or acting as the brave and noble person who saves the day or rescues others in a situation.